package com.booleam.model;

import java.util.Map;

/**
 * @author asen
 */
public class ResponseDO<T> {
    private int resultCode;
    private T data;
    private String msg;
    private Map extra;

    public ResponseDO() {}

    public ResponseDO(int resultCode, T data) {
        this.resultCode = resultCode;
        this.data = data;
    }

    public ResponseDO(int resultCode, T data, String msg) {
        this.resultCode = resultCode;
        this.data = data;
        this.msg = msg;
    }

    public ResponseDO(int resultCode, T data, String msg, Map extra) {
        this.resultCode = resultCode;
        this.data = data;
        this.msg = msg;
        this.extra = extra;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map getExtra() {
        return extra;
    }

    public void setExtra(Map extra) {
        this.extra = extra;
    }
}
